package work20241206_chap7.k_demo9;

/**
 * @author zdl
 * @date 2024/12/3
 */
public class Demo {
    public static void main(String[] args) {
        Magicer magicer  = new Magicer();
        magicer.setName("法师1");
        magicer.setLevel(2);
        Soldier soldier = new Soldier("战士1",10);
        Team team = new Team();
        team.addMember(magicer);
        team.addMember(soldier);

        System.out.println("总伤害"+team.attackSum());
    }
}
